#include <iostream>


using namespace std;



class Solution {
public:
	bool isPalindrome(int x) {
		if (x < 0) return false;
		long long  tmp = 0;
		int copyx = x;
		while (copyx != 0) {
			int add = copyx % 10;
			copyx = copyx / 10;
			tmp += add;
			tmp *= 10;
		}
		if (tmp / 10 == x)
			return true;
		return false;
	}
};


//int main() {
//	Solution s;
//	s.isPalindrome(234);
//
//	return 0;
//}